<!DOCTYPE html>
<html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-0 vector-toc-not-available vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-0 skin-theme-clientpref-day vector-sticky-header-enabled" lang="de" dir="ltr"><head>
<meta charset="UTF-8">
<title>Pygame</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="./_res_/favicon.png">
<link rel="canonical" href="https://de.wikipedia.org/wiki/Pygame"> <link href="./_mw_/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.wikimediamessages.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link href="./_mw_/ext.gadget.citeRef.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.defaultPlainlinks.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiCommonHide.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiCommonLayout.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiCommonStyle.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiDarkmode.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiResponsive.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.specialSearch.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="./_mw_/site.styles.css">
<link rel="stylesheet" type="text/css" href="./_mw_/noscript.css">
<link rel="stylesheet" type="text/css" href="./_res_/footer.css">
<link rel="stylesheet" type="text/css" href="./_res_/vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Pygame rootpage-Pygame skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Pygame</span></h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="contentSub">
<div id="mw-content-subtitle"></div>
</div>
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="de" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="de" dir="ltr"><table class="float-right infobox toccolours toptextcells" style="border-spacing:5px; font-size:90%; text-align:left; width:21em;">
<tbody><tr>
<th colspan="2" class="hintergrundfarbe6" style="font-size:105%; text-align:center;">Pygame
<p class="mw-empty-elt">
</p>
</th></tr>
<tr>
<td colspan="2" style="text-align:center;"><span typeof="mw:File"></span>
</td></tr>
<tr>
<th colspan="2" class="hintergrundfarbe5" style="font-size:105%; text-align:center;">Basisdaten
<p class="mw-empty-elt">
</p>
</th></tr>
<tr>
<td><b><a href="Softwareentwickler" title="Softwareentwickler">Entwickler</a></b>
</td>
<td>Pete Shinners
</td></tr>
<tr>
<td><b>Erscheinungsjahr</b>
</td>
<td><span class="wikidata-content">22. Oktober 2000</span>
</td></tr>
<tr>
<td><b>Aktuelle <a href="Version_(Software)" title="Version (Software)">Version</a></b>
</td>
<td><span class="wikidata-content">2.6.1<sup id="cite_ref-_d49c9d92a5164358_1-0" class="reference"><a href="#cite_note-_d49c9d92a5164358-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup></span> <br> (<span class="wikidata-content">29. September 2024</span>)
</td></tr>
<tr>
<td><b><a href="Betriebssystem" title="Betriebssystem">Betriebssystem</a></b>
</td>
<td><a href="Plattformunabh%C3%A4ngig" class="mw-redirect" title="Plattformunabhängig">plattformunabhängig</a>
</td></tr>
<tr>
<td><b><a href="Programmiersprache" title="Programmiersprache">Programmiersprache</a></b>
</td>
<td><span class="wikidata-content"><a href="C_(Programmiersprache)" title="C (Programmiersprache)">C</a>, <a href="Python_(Programmiersprache)" title="Python (Programmiersprache)">Python</a><sup id="cite_ref-_0e92d686fe8905a7_2-0" class="reference"><a href="#cite_note-_0e92d686fe8905a7-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup></span>
</td></tr>
<tr>
<td><b>Kategorie</b>
</td>
<td><a href="Programmbibliothek" title="Programmbibliothek">Programmbibliothek</a>
</td></tr>
<tr>
<td><b>Lizenz</b>
</td>
<td><a href="LGPL" class="mw-redirect" title="LGPL">LGPL</a>
</td></tr>
<tr>
<td class="hintergrundfarbe5" colspan="2" style="text-align:center;"><a rel="nofollow" class="external free" href="https://www.pygame.org">https://www.pygame.org</a>
</td></tr></tbody></table>
<p><b>Pygame</b> ist eine von Pete Shinners entwickelte <a href="Python_(Programmiersprache)" title="Python (Programmiersprache)">Python</a>-<a href="Programmbibliothek" title="Programmbibliothek">Programmbibliothek</a> zur Spieleprogrammierung.
</p><p>Sie enthält Module zum Abspielen und Steuern von Grafik und Sound sowie zum Abfragen von Eingabegeräten (Tastatur, Maus, <a href="Joystick" title="Joystick">Joystick</a>). Als Grundlage verwendet Pygame die <a href="Simple_DirectMedia_Layer" title="Simple DirectMedia Layer">Simple-DirectMedia-Layer</a>-Bibliothek. Ziel ist es, Computerspiele entwickeln zu können, ohne auf Low-Level-<a href="Programmiersprache" title="Programmiersprache">Programmiersprachen</a> wie <a href="C_(Programmiersprache)" title="C (Programmiersprache)">C</a> zurückgreifen zu müssen. Dies basiert auf der Annahme, dass die rechenintensivsten Funktionen innerhalb eines Computerspiels (in erster Linie Grafikroutinen) komplett von der Spiel-Logik abstrahiert werden können und deshalb eine High-Level-Programmiersprache wie Python verwendet werden kann, um das Spiel als solches und seinen Ablauf zu strukturieren.
</p><p>Pygame ist kompatibel zu 3D-Grafikmodulen wie PyOpenGL<sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> und PyEngine3D.<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Dateiformate">Dateiformate</h2></div>
<p><b>Bilder</b>
</p><p>Pygame unterstützt mehrere Bildformate.<sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup>
</p>
<ul><li>JPG, PNG, GIF (nicht animiert), BMP</li>
<li>PCX, TGA (unkomprimiert), TIF, LBM, PBM (sowie PGM und PPM), XPM</li></ul>
<p>Man kann Bilder auch als Dateien auf der Festplatte speichern, unterstützt werden die Bildformate BMP, TGA, PNG und JPEG.
</p><p><b>Musik, Sound</b>
</p><p>Es werden die Formate <a href="Ogg" title="Ogg">OGG</a>, WAV (unkomprimiert) und seit Version 2.0.2 auch MP3 unterstützt.<sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Spiele,_die_Pygame_nutzen"><span id="Spiele.2C_die_Pygame_nutzen"></span>Spiele, die Pygame nutzen</h2></div>
<ul><li><i><a href="Frets_on_Fire" title="Frets on Fire">Frets on Fire</a></i></li>
<li><i>Unity of Command</i><sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup>, der Vorgängertitel zu <i><a href="Unity_of_Command_II" title="Unity of Command II">Unity of Command II</a></i></li>
<li><i>Dangerous High School Girls in Trouble!</i><sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup></li>
<li><i>Save the Date</i><sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup> IndieCade-2013-Finalist.</li>
<li><i>Trosnoth</i><sup id="cite_ref-10" class="reference"><a href="#cite_note-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup> (ein Netzwerkspiel)</li>
<li><i>Super Potato Bruh</i><sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup></li>
<li><i>SolarWolf</i><sup id="cite_ref-12" class="reference"><a href="#cite_note-12"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup>, basiert auf Solar Fox</li></ul>
<div class="mw-heading mw-heading2"><h2 id="Weblinks">Weblinks</h2></div>
<ul><li><a rel="nofollow" class="external text" href="https://www.pygame.org/">Offizielle Website</a></li>
<li><a rel="nofollow" class="external text" href="https://www.pygame.org/docs/index.html">Englischsprachige Dokumentation</a></li>
<li><a rel="nofollow" class="external text" href="https://www.python-lernen.de/pygame-tutorial.htm">Deutschsprachige Dokumentation</a></li>
<li><a rel="nofollow" class="external text" href="https://github.com/pygame/pygame">Pygame</a> auf <a href="GitHub" title="GitHub">GitHub</a></li>
<li><a rel="nofollow" class="external text" href="https://github.com/adamsralf/pygame_skript/blob/main/00%20skript.pdf">Eine deutschsprachige Einführung</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="Einzelnachweise">Einzelnachweise</h2></div>
<ol class="references">
<li id="cite_note-_d49c9d92a5164358-1"><span class="mw-cite-backlink"><a href="#cite_ref-_d49c9d92a5164358_1-0">↑</a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://github.com/pygame/pygame/releases/tag/2.6.1"><cite style="font-style:italic"><span lang="en">Release 2.6.1</span></cite>.</a> 29. September 2024 (abgerufen am 27. Oktober 2024).</span>
</li>
<li id="cite_note-_0e92d686fe8905a7-2"><span class="mw-cite-backlink"><a href="#cite_ref-_0e92d686fe8905a7_2-0">↑</a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://www.openhub.net/p/pygame/analyses/latest/languages_summary"><cite style="font-style:italic"><span lang="en">The pygame Open Source Project on Open Hub: Languages Page</span></cite>.</a> In: <cite style="font-style:italic">Open Hub</cite>. (abgerufen am 5. September 2018).</span>
</li>
<li id="cite_note-3"><span class="mw-cite-backlink"><a href="#cite_ref-3">↑</a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://pyopengl.sourceforge.net">PyOpenGL 3.x</a>, auf pyopengl.sourceforge.net</span>
</li>
<li id="cite_note-4"><span class="mw-cite-backlink"><a href="#cite_ref-4">↑</a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://github.com/ubuntunux/PyEngine3D">ubuntunux / PyEngine3D Public</a>, auf github.com</span>
</li>
<li id="cite_note-5"><span class="mw-cite-backlink"><a href="#cite_ref-5">↑</a></span> <span class="reference-text"><span class="cite"><a rel="nofollow" class="external text" href="https://www.pygame.org/docs/ref/image.html"><i>pygame.image — Pygame v1.9.4 documentation.</i></a><span class="Abrufdatum"> Abgerufen am 23. März 2018</span>.</span><span style="display: none;" class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&rfr_id=info%3Asid%2Fde.wikipedia.org%3APygame&rft.title=pygame.image+%E2%80%94+Pygame+v1.9.4+documentation&rft.description=pygame.image+%E2%80%94+Pygame+v1.9.4+documentation&rft.identifier=https%3A%2F%2Fwww.pygame.org%2Fdocs%2Fref%2Fimage.html"> </span></span>
</li>
<li id="cite_note-6"><span class="mw-cite-backlink"><a href="#cite_ref-6">↑</a></span> <span class="reference-text"><span class="cite"><a rel="nofollow" class="external text" href="https://www.pygame.org/docs/ref/music.html"><i>pygame.mixer.music — pygame v2.1.1 documentation.</i></a><span class="Abrufdatum"> Abgerufen am 3. Dezember 2021</span>.</span><span style="display: none;" class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&rfr_id=info%3Asid%2Fde.wikipedia.org%3APygame&rft.title=pygame.mixer.music+%E2%80%94+pygame+v2.1.1+documentation&rft.description=pygame.mixer.music+%E2%80%94+pygame+v2.1.1+documentation&rft.identifier=https%3A%2F%2Fwww.pygame.org%2Fdocs%2Fref%2Fmusic.html"> </span></span>
</li>
<li id="cite_note-7"><span class="mw-cite-backlink"><a href="#cite_ref-7">↑</a></span> <span class="reference-text"><span class="cite"><a rel="nofollow" class="external text" href="https://unityofcommand.net/forums/viewtopic.php?t=607"><i>programming language used? - Unity of Command Forums.</i></a><span class="Abrufdatum"> Abgerufen am 22. Januar 2022</span>.</span><span style="display: none;" class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&rfr_id=info%3Asid%2Fde.wikipedia.org%3APygame&rft.title=programming+language+used%3F+-+Unity+of+Command+Forums&rft.description=programming+language+used%3F+-+Unity+of+Command+Forums&rft.identifier=https%3A%2F%2Funityofcommand.net%2Fforums%2Fviewtopic.php%3Ft%3D607"> </span></span>
</li>
<li id="cite_note-8"><span class="mw-cite-backlink"><a href="#cite_ref-8">↑</a></span> <span class="reference-text"><span class="cite"><a rel="nofollow" class="external text" href="https://pygame.org/project-Dangerous+High+School+Girls+in+Trouble!-791-.html"><i>Dangerous High School Girls in Trouble!</i></a> Pygame.org,<span class="Abrufdatum"> abgerufen am 8. Juli 2011</span> (englisch).</span><span style="display: none;" class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&rfr_id=info%3Asid%2Fde.wikipedia.org%3APygame&rft.title=Dangerous+High+School+Girls+in+Trouble%21&rft.description=Dangerous+High+School+Girls+in+Trouble%21&rft.identifier=&rft.publisher=Pygame.org&rft.date=&rft.language=en"> </span></span>
</li>
<li id="cite_note-9"><span class="mw-cite-backlink"><a href="#cite_ref-9">↑</a></span> <span class="reference-text"><span class="cite"><a rel="nofollow" class="external text" href="http://paperdino.com/save-the-date/"><i>Save the Date.</i></a> Paperdino.com,<span class="Abrufdatum"> abgerufen am 14. Oktober 2014</span> (englisch).</span><span style="display: none;" class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&rfr_id=info%3Asid%2Fde.wikipedia.org%3APygame&rft.title=Save+the+Date&rft.description=Save+the+Date&rft.identifier=&rft.publisher=Paperdino.com&rft.date=&rft.language=en"> </span></span>
</li>
<li id="cite_note-10"><span class="mw-cite-backlink"><a href="#cite_ref-10">↑</a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://sqizit.bartletts.id.au/projects/trosnoth/">Trosnoth</a></span>
</li>
<li id="cite_note-11"><span class="mw-cite-backlink"><a href="#cite_ref-11">↑</a></span> <span class="reference-text"><span class="cite"><a rel="nofollow" class="external text" href="https://cmlsc.itch.io/super-potato-bruh"><i>Super Potato Bruh by DaFluffyPotato.</i></a><span class="Abrufdatum"> Abgerufen am 11. Oktober 2019</span> (englisch).</span><span style="display: none;" class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&rfr_id=info%3Asid%2Fde.wikipedia.org%3APygame&rft.title=Super+Potato+Bruh+by+DaFluffyPotato&rft.description=Super+Potato+Bruh+by+DaFluffyPotato&rft.identifier=https%3A%2F%2Fcmlsc.itch.io%2Fsuper-potato-bruh&rft.language=en"> </span></span>
</li>
<li id="cite_note-12"><span class="mw-cite-backlink"><a href="#cite_ref-12">↑</a></span> <span class="reference-text"><span class="cite"><a rel="nofollow" class="external text" href="https://www.pygame.org/shredwheat/solarwolf/index.shtml"><i>Planet SolarWolf.</i></a><span class="Abrufdatum"> Abgerufen am 11. Oktober 2019</span>.</span><span style="display: none;" class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&rfr_id=info%3Asid%2Fde.wikipedia.org%3APygame&rft.title=Planet+SolarWolf&rft.description=Planet+SolarWolf&rft.identifier=https%3A%2F%2Fwww.pygame.org%2Fshredwheat%2Fsolarwolf%2Findex.shtml"> </span></span>
</li>
</ol></div><!--htdig_noindex--><div><div class="zim-footer">
Dieser Artikel wurde von <a class="external text" title="Zuletzt bearbeitet am 2025-09-15" href="https://de.wikipedia.org/wiki/?title=Pygame&oldid=259765462">Wikipedia</a> herausgegeben. Der Text ist unter <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.de">Creative Commons Attribution-Share Alike 4.0</a> verfügbar, sofern nicht anders angegeben. Für die Mediendateien können zusätzliche Bedingungen gelten.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>
<script src="./_webp_/webpHandler.js"></script>
</body></html>